package com.wangxl.rabbitmqdemo.enumtype;

import java.io.Serializable;

/**
 * 消息渠道枚举类型
 */
public enum MessageChannelEnum implements Serializable {

    SIMPLE_MESSAGE("simple","S001"),
    BUSINESS_MESSAGE("business","B001"),
    BUSINESS_EMAIL("business","B002");

    private String channelType;

    private String channelCode;


    MessageChannelEnum(String channelType, String channelCode) {
        this.channelType = channelType;
        this.channelCode = channelCode;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }
}
